import customerLayout from '@/layout/customer/index.vue'

const routes = [
  // 平台使用
  {
    path: '/customer',
    component: customerLayout,
    redirect: '/customer',
    name: 'customer',
    meta: { title: '客户端' },
    children: [
      {
        path: '',
        name: 'customer_index',
        component: () => import('@/views/customer/index.vue'),
        meta: { title: '平台列表' }
      }
    ]
  },
  {
    path: '/customer/plugin/:appName',
    component: customerLayout,
    name: 'customer_plugin',
    meta: { title: '插件' },
    children: [
      {
        path: '',
        name: 'customer_plugin_view',
        component: () => import('@/views/customer/plugin.vue'),
        meta: { title: '插件' }
      }
    ]
  }
]
export default routes
